<script id="orderListTpl" type="text/template">
    <% _.each(data.orders,function(order){ %>
        <li class="orderItem">
            <div class="oTit">
                联系人：<span class="contactor"><%=order.ordername%></span>
                <span class="mobile">电话：<%=order.ordertel%></span>
                <span class="flag"><%={
                            "0" : "未使用",
                            "1" : "已使用",
                            "2" : "已过期",
                            "3" : "已取消",
                            "4" : "凭证码被替代",
                            "5" : "被终端撤销(已取消)",
                            "6" : "被终端撤销(已使用)"
                        }[order.status]%></span>
            </div>
            <div class="itemCon">
                <div class="ltCon">
                    <p class="line"><span class="lt"><span class="vhidden">订</span>订单号：</span><span class="rt"><%=order.ordernum%></span></p>
                    <p class="line"><span class="lt">下单时间：</span><span class="rt"><%=order.ordertime%></span></p>
                   <p class="line"><span class="lt">游玩时间：</span><span class="rt"><%=order.begintime%></span></p>
                </div>
                <div class="inCon">
                    <ul class="ticketUl">
                        <% _.each(order.tickets,function(ticket){ %>
                            <li class="ticketLi clearfix">
                                <div class="inpCtrol">
                                    <input
                                        class="tinp"
                                        type="text"
                                        value="<%=ticket.tnum%>"
                                        <%= data.cmode==1 ? 'readonly' : '' %>
                                        data-ptype="<%=order.ptype%>"
                                        data-maxnum="<%=ticket.tnum%>"
                                        data-mainordernum="<%=order.ordernum%>"
                                        data-ordernum="<%=ticket.ordernum%>"
                                    />
                                    <span class="zhang">张</span>
                                </div>
                                <div class="trnameCol">
                                    <p class="tname">【<%=ticket.name%>】</p>
                                    <p class="bt">
                                        共<em class="tnum"><%=ticket.tnum%></em>张<i class="vt"></i>
                                        <%= data.hasTerminal==1 ? '<span class="checkText">已验证</span>' : '<span class="checkText">未验证</span>' %><em class="tnum"><%=ticket.tnum%></em>张
                                    </p>
                                </div>
                            </li>
                        <% }) %>
                    </ul>
                    <a class="checkBtn <%=data.hasTerminal==1 ? 'success' : '' %>" href="javascript:void(0)" data-cmode="<%=data.cmode%>" data-mainordernum="<%=order.ordernum%>" data-code="<%=order.code%>"><%=data.hasTerminal==1 ? '验证成功' : '验证' %></a>
                    <div class="error"><span class="t"></span></div>
                </div>
            </div>
        </li>
    <% }) %>
</script>